package com.lagou.demo.dao.impl;

import com.lagou.demo.dao.IUserDao;
import com.lagou.edu.mvcframework.annotations.LagouService;
import com.lagou.edu.mvcframework.pojo.User;

import java.util.ArrayList;
import java.util.List;

@LagouService("userDao")
public class IUserDaoImpl implements IUserDao {
    @Override
    public List<User> permissionUser() {
        //有权限的用户列表
        ArrayList<User> userList = new ArrayList<>();
        //添加三个用户
        userList.add(new User(1L,"zhangsan"));
        userList.add(new User(2L,"lisi"));
        userList.add(new User(3L,"wangwu"));
        return userList;
    }
}
